/*
 * @Author: 张家亮 1690608011@qq.com
 * @Date: 2022-08-17 17:30:22
 * @LastEditors: 张家亮 1690608011@qq.com
 * @LastEditTime: 2022-08-20 10:52:48
 * @FilePath: \vue-store-server\app\controllers\resourcesController.js
 * @Description: 资源模块控制器
 * 
 * Copyright (c) 2022 by 张家亮 1690608011@qq.com, All Rights Reserved. 
 */
const resourcesDao = require('../models/dao/resourcesDao');
module.exports = {
  /**
   * 获取轮播图数据
   * @param {Object} ctx
   */
  Carousel: async ctx => {
    let carousel = await resourcesDao.Carousel();
    ctx.body = {
      code: '001',
      carousel
    }
  }
}